<!DOCTYPE html>
<html>
<head>
    <title>微信用户</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("wx:wxuser:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("wx:wxuser:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("wx:wxuser:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否订阅公众号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.subscribe" placeholder="是否订阅公众号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.openid" placeholder="用户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">微信昵称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.nickname" placeholder="微信昵称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">性别</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.sex" placeholder="性别"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">语言</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.language" placeholder="语言"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">省份</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.province" placeholder="省份"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">国家</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.country" placeholder="国家"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户头像</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.headimgurl" placeholder="用户头像"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订阅时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.subscribeTime" placeholder="订阅时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">公众号id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.unionid" placeholder="公众号id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.remark" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">分组id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.groupid" placeholder="分组id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">标签列表</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.tagidList" placeholder="标签列表"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">关注渠道来源</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.subscribeScene" placeholder="关注渠道来源"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">二维码扫码场景描述</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.qrScene" placeholder="二维码扫码场景描述"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">二维码扫码场景描述</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.qrSceneStr" placeholder="二维码扫码场景描述"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户权限</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.privilege" placeholder="用户权限"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">授权凭证</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.accessToken" placeholder="授权凭证"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">上一次授权时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.lastAccessDate" placeholder="上一次授权时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">刷新token</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.refreshToken" placeholder="刷新token"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">作用域</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.scope" placeholder="作用域"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">token有效期时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="wxUser.expireIn" placeholder="token有效期时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/wx/wxuser.js?_${.now?long}"></script>
</body>
</html>